package com.com.knowledgepaymentmanagementsystem.service.marketing.impl;

import com.com.knowledgepaymentmanagementsystem.mapper.marketing.GiveMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.com.knowledgepaymentmanagementsystem.pojo.marketing.Give;
import com.com.knowledgepaymentmanagementsystem.service.marketing.GiveService;

import java.util.List;

/**
 * @author DELL
 * @version 1.0
 * @description: TODO
 * @date 2025/9/23 15:14
 */
@Service
public class GiveServiceImpl implements GiveService {
    @Autowired
    private GiveMapper giveMapper;

    @Override
    public List<Give> getGive(Give give) {
        return giveMapper.getGive(give);


    }

    @Override
    public Object insertGive(Give give) {
        return giveMapper.insert(give);
    }

    @Override
    public void deleteGive(Integer giveId) {
        giveMapper.deleteById(giveId);
    }

    @Override
    public void updateGive(Give give) {
        giveMapper.updateById(give);
    }
}
